package com.team.arms.service_management_before.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.team.arms.service_management_before.domain.Schedule;
import com.team.arms.service_management_before.service.ScheduleService;
import com.team.arms.service_management_before.mapper.ScheduleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class ScheduleServiceImpl extends ServiceImpl<ScheduleMapper, Schedule>
    implements ScheduleService{

    @Autowired
    private ScheduleMapper scheduleMapper;

    @Override
    public List<Schedule> selectClothingTable(Schedule schedule) {
        return scheduleMapper.selectSchedule(schedule);
    }

    @Override
    public int deleteByClothingIds(List<String> id) {
        return scheduleMapper.deleteBatchIds(id);
    }

    @Override
    public int deleteByClothingId(String id) {
        return scheduleMapper.deleteById(id);
    }

    @Override
    public int insertAll(Schedule schedule) {
        return scheduleMapper.insertAll(schedule);
    }

    @Override
    public Schedule selectById(String id) {
        return scheduleMapper.selectByScheduleId(id);
    }

    @Override
    public List<Schedule> selectByFiled(String field, String content) {
        return scheduleMapper.selectByFiled(field, content);
    }
}




